<?php echo $this->Html->script('signup', array('inline' => FALSE));?>
<h1 id="mainTitle" class="profile">Facebookアカウントで登録する</h1>
<!-- #mainColumns -->
<div id="mainColumns">
	<?php echo $this->Form->create('User', array('action' => 'facebookNew', 'onSubmit' => 'return validateForm();')) ; ?>
		<table class="form">
			<tr>
				<td class="left"><label for="email">メールアドレス</label></td>
				<td>
					<?php echo $this->Form->input('email', array('type' => 'text', 'class' => "text", 'div' => false, 'label' => false)); ?>
					<br />
					<?php echo $this->Form->checkbox('Facebook.term', array('div' => FALSE, 'label' => FALSE, 'id' => 'facebook-tos'));?>
					<?php echo $this->Html->link('利用規約に同意して登録', array('controller' => 'pages', 'action' => 'display', 'terms'), array('target' => 'blank'));?><div class="error-message" id="facebook-error">
						<?php if(isset($errorMessage) && $errorMessage !=''):?>
							<?php echo $errorMessage ;?>
						<?php endif;?>
					</div>
				</td>
			</tr>
			<tr>
				<td colspan="2" class="submit">
					<?php echo $this->Form->submit('btn_save_off.png', array('div' => FALSE)); ?>
				</td>
			</tr>
		</table>
	<?php echo $this->Form->end();?>
</div>
<!-- /#mainColumns -->
<?php echo $this->element('top_link'); ?>